var Mock = require('mockjs')

Mock.mock('m/q/c',{
    'data|10':[
        {
            'id|+1':1,
            'name':'@cword(3)'
        }
    ]
})

Mock.mock('m/q/c?1',{
    'data':{
        "id|+1":10, 
        "name":"@cname(3)",
        "parameters|2":[
            {"id|+1":100, "configId":"xxx","paramName":"xxx","paramCode":123,"paramValue":456},
        ]
    }
})

Mock.mock('m/q/p',{
    'data|10':
    [{
        'code|+1':200
    }]
})
Mock.mock('m/d/c?1',{
    'code':202,
    'message':'success'
})
Mock.mock('m/a/c',{
    'code':201,
    'message':'success'
})

Mock.mock('m/d/m',{
    'code':202,
    'message':'success'
})

Mock.mock('m/u',{
    'data|10':['863709037268456']
})

Mock.mock('m/u',{
    'code':201,
    'message':'Created'
})

Mock.mock('m/a/m',{
    'code':201,
    'message':'Created'
})


Mock.mock('ip/list',{
    'data|10':[
        {'id|+1':1,'ip':'@ip','port|0-65356':0,'protocol':'@cname(3)'}
    ]
})